package com.ktjy.ktmall.vo;

import java.math.BigDecimal;

/** CartItem购物车实体类的Vo类，
 * @version v1.0
 * @Author 郴州科泰
 * @Create 2024-08-03 - 8:28
 */
public class CartItemVo {

    private int id;  // t_cart购物车表的主键id
    /** 商品 ID */
    private int goodsId;
    /** SKU ID */
    private int skuId;
    /** 商品名称 */
    private String name;
    /** 图片 */
    private String picture;
    /** 数量 */
    private int count;
    /** 加入时价格(为SKU的价格) */
    private BigDecimal price;
    /** 当前的价格(对SKU价格打9折) */
    private BigDecimal nowPrice;
    /** 库存 */
    private int stock;
    /** 是否选中 */
    private boolean selected = true;
    /** 属性文字 */
    private String attrsText;

    public CartItemVo() { }

    public CartItemVo(int id, int goodsId, int skuId, String name, String picture, int count, BigDecimal price, int stock, boolean selected, String attrsText) {
        this.id = id;
        this.goodsId = goodsId;
        this.skuId = skuId;
        this.name = name;
        this.picture = picture;
        this.count = count;
        this.price = price;
        this.stock = stock;
        this.selected = selected;
        this.attrsText = attrsText;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getId() {
        return id;
    }

    public BigDecimal getNowPrice() {
        return nowPrice;
    }

    public void setNowPrice(BigDecimal nowPrice) {
        this.nowPrice = nowPrice;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSkuId() {
        return skuId;
    }

    public void setSkuId(int skuId) {
        this.skuId = skuId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public String getAttrsText() {
        return attrsText;
    }

    public void setAttrsText(String attrsText) {
        this.attrsText = attrsText;
    }
}
